
			AREA    OSKERNEL, CODE, READONLY, ALIGN=2
			PRESERVE8

			EXPORT  HardFault_Handler

			THUMB

HardFault_Handler\
			PROC
			IMPORT  print_debuginfo
			TST     LR, #4
			ITE     EQ
			MRSEQ   R0, MSP
			MRSNE   R0, PSP
			B       print_debuginfo
			ENDP

			END

